package com.lwt.yygh.hosp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author Weton Li
 * @Date 2021/4/4 13:36
 */
@SpringBootApplication

@ComponentScan(basePackages = "com.lwt") // 这里配置com.lwt将会报错

@EnableDiscoveryClient // 将hosp模块在注册中心nacos中注册

@EnableFeignClients(basePackages = "com.lwt")
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
